<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dashboard extends MY_Controller {
 function __construct()
 {
   parent::__construct();
 }
 function index(){
    $data = $this->data; 
    $data['title'] = 'Dashboard';
	global $hooks;
	$hooks->add_action('left_nav',array($this,'left_nav_add'));
    $this->load->view('dashboard_view', $data);
 }
 function logout()
 {
   $this->session->unset_userdata('logged_in');
   session_destroy();
   redirect('login', 'refresh');
 }
 function left_nav_add(){
	echo "<li><a href='dashboard'>DashBoard</a></li>";
 }
}

?>
